<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
    <title>{:set('titles')}</title>
    <meta name="keywords" content="{:set('keywords')}">
    <meta name="description" content="{:set('description')}">
    {include file="header"}
</head>
<body>
<section class="aui-flexView">
	<header class="aui-navBar aui-navBar-fixed animated slideInDown">
		<div class="aui-center">
			<div class="aui-search-box">
			    <form method="get" action="{if $hover==$m}{:url('index/model/soso',array('m'=>$m))}{else/}{:url('index/index/soso')}{/if}">
    				<i class="iconfont">&#xe619;</i>
    				<input type="text" name="ks" value="{:input('ks')}" placeholder="搜你想搜的">
    			</form>
			</div>
		</div>
		{if user('userid')}
		<a href="{:url('index/user/set')}" class="aui-navBar-item">
			<i class="iconfont">&#xe697;</i>
		</a>
		{else/}
		<a href="javascript:;" class="aui-navBar-item yemianf" w="100%" title="注册登录" tblr="b" h="80%" anim="2" url="{:url('index/user/login')}">
			<i class="iconfont">&#xe697;</i>
		</a>
		{/if}
	</header>
	<section class="aui-scrollView animated slideInLeft0">
		<div class="m-slider animated slideInLeft" data-ydui-slider>
			<div class="slider-wrapper">
				 {:cms('huandengoian')}
			</div>
			<div class="slider-pagination"></div>
		</div>
		<div class="aui-palace aui-palace-one animated slideInRight">
		    <a href="{:url('index/index/cate')}" class="aui-palace-grid">
				<div class="aui-palace-grid-icon">
					 <img src="{:m()}/img/html.png" onerror="javascript:this.src='/favicon.ico';">
				</div>
				<div class="aui-palace-grid-text">
					<h2>文章资讯</h2>
				</div>
			</a>
		    {volist name=":fun_s('model',array('open'=>1),'id asc',80,0)" id="v"}
			<a href="{:url('index/model/index',array('model'=>$v.name))}" class="aui-palace-grid">
				<div class="aui-palace-grid-icon">
					 <img src="{$v.pic}" onerror="javascript:this.src='/favicon.ico';">
				</div>
				<div class="aui-palace-grid-text">
					<h2>{$v.title}</h2>
				</div>
			</a>
			{/volist}
		</div>
		<div class="aui-flex">
			<div class="aui-flex-box">
				<h1>推荐文章</h1>
			</div>
		</div>
		<div class="aui-withe-box">
		    <div class="aui-list-theme-box">
		        {volist name=":fun_s('html',array('open'=>1,'settop'=>1),'times desc',4,1)" id="vo"}
		        {if $i==1}
		        <a href="{:url('index/index/html',array('id'=>$vo.id))}">
                    <div class="aui-flex b-line">
                        <div class="aui-ad-img">
                            <img src="{$vo.content|pic}" alt="{$vo.title}" onerror="javascript:this.src='/public/img/cover/0.jpg';">
                        </div>
                        <div class="aui-flex-box">
                            <h2>{$vo.title}</h2>
                            <p>{:cut_c(htmlspecialchars_decode($vo['content']),20)}</p>
                            <p>{$vo.times|times}</p>
                        </div>
                    </div>
                </a>
                {else/}
				<a href="{:url('index/index/html',array('id'=>$vo.id))}" class="aui-list-item">
					<div class="aui-list-theme-img">
						<img src="{$vo.content|pic}" alt="{$vo.title}" onerror="javascript:this.src='/public/img/cover/0.jpg';">
						<span>推荐</span>
					</div>
					<div class="aui-list-theme-message">
						<h3 class="aui-list-theme-title">{$vo.title}</h3>
						<p><i>{$i}</i>{$vo.times|times}</p>
					</div>
				</a>
				{/if}
				{/volist}
			</div>
		</div>
        <div class="aui-flex">
			<div class="aui-flex-box">
				<h1>最新文章</h1>
			</div>
		</div>
		<div class="aui-withe-box aui-withe-box-one">
		    {volist name=":fun_s('html',array('open'=>1),'times desc',10,1)" id="vo"}
		    <a href="{:url('index/index/html',array('id'=>$vo.id))}">
    			<div class="aui-flex b-line">
    				<div class="aui-ad-img">
    					<img src="{$vo.content|pic}" alt="{$vo.title}" onerror="javascript:this.src='/public/img/cover/0.jpg';">
    				</div>
    				<div class="aui-flex-box">
    					<h2>{$vo.title}</h2>
    					<p>{:cut_c(htmlspecialchars_decode($vo['content']),20)}</p>
    					<p>{$vo.times|times}</p>
    				</div>
    			</div>
			</a>
			{/volist}
			<div class="aui-all">
				<a href="{:url('index/index/cate')}">查看全部</a>
			</div>
		</div>
		{volist name=":fun_s('model',array('open'=>1),'px desc',80,0)" id="v"}
		<div class="aui-flex">
			<div class="aui-flex-box">
				<h1>{$v.title}</h1>
			</div>
		</div>
		<div class="aui-withe-box">
			<div class="aui-play-list b-line">
			    {volist name=":fun_sd($v.name,array('f.open'=>1),0,'settop desc , times desc','8,false',0,'cate_m')" id="vo" empty="
                <div class='empty' align='center'>
                    <img src='/public/img/empty.png'/>
                    <p>没有更多的记录</p>
                </div>"}
				<a href="{:url('index/model/html',array('model'=>$vo.m,'id'=>$vo.id))}" class="aui-flex">
					<div class="aui-play-img">
						<img src="{$vo.content|pic}" alt="{$vo.title}" onerror="javascript:this.src='/public/img/cover/0.jpg';">
					</div>
					<div class="aui-flex-box">
						<h5>{$vo.title}</h5>
					</div>
					<div class="aui-time">{$vo.times|times}</div>
				</a>
				{/volist}
			</div>
			<div class="aui-all">
				<a href="{:url('index/model/index',array('model'=>$v.name))}">查看更多</a>
			</div>
		</div>
		{/volist}
	</section>
    {include file="footer"}
</section>
</body>
</html>
